package com.arrcen.medicen.core.match.ctrl;


import com.arrcen.medicen.core.match.model.dto.DtoSaveTable;
import com.arrcen.medicen.core.match.model.dto.ResultHashMap;
import com.arrcen.medicen.core.match.service.SyncTable;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("Test")
public class TestController {

    @Autowired
    SyncTable syncTable;

    @RequestMapping(value = "SyncData", method = RequestMethod.POST)
    @ApiOperation(value = "保存调度数据")
    public ResultHashMap SyncData(@RequestBody DtoSaveTable inData) {
        return syncTable.saveData(inData);
    }
}
